﻿using LeaRun.Application.Entity.BaseManage;
using LeaRun.Application.IService.BaseManage;
using LeaRun.Application.Service.BaseManage;
using LeaRun.Util.WebControl;
using System;
using System.Collections.Generic;

namespace LeaRun.Application.Busines.BaseManage
{
    public class studentBLL
    {
        private studentIService service = new studentService();
        public IEnumerable<studentEntity> GetPageList(Pagination pagination, string queryJson)
        {
            return this.service.GetPageList(pagination, queryJson);
        }
        public IEnumerable<studentEntity> GetList(string queryJson)
        {
            return this.service.GetList(queryJson);
        }
        public studentEntity GetEntity(string keyValue)
        {
            return this.service.GetEntity(keyValue);
        }
        public void RemoveForm(string keyValue)
        {
            try
            {
                this.service.RemoveForm(keyValue);
            }
            catch (Exception)
            {
                throw;
            }
        }
        public void SaveForm(string keyValue, studentEntity entity)
        {
            try
            {
                this.service.SaveForm(keyValue, entity);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
